A web page (or webpage) is a Web document that is accessed in a web browser. A website typically consists of many web pages hyperlink together under a common domain name. The term "web page" is therefore a metaphor of paper pages bound together into a book.
Navigation
Each web page is identified by a distinct
URL (URL). When the user inputs a URL into their
web browser, the browser retrieves the necessary content from a
web server and then
browser engine it into an interactive visual representation on the user's screen.
If the user clicks or touchscreen a hyperlink, the browser repeats this process to load the new URL, which could be part of the current website or a different one. The browser has features, such as the address bar, that indicate which page is displayed.
Elements
A web page is a structured document. The core element is a
text file written in the
HTML (HTML). This specifies the content of the page,
including
and
video.
CSS (CSS) specify the presentation of the page. CSS rules can be in separate text files or embedded within the HTML file.
The vast majority of pages have JavaScript computer program, enabling a wide range of behavior. The newer WebAssembly language can also be used as a supplement.
The most sophisticated web pages, known as web application, combine these elements in a complex manner.
Deployment
From the perspective of
server-side website deployment, there are two types of web pages: static and dynamic. Static pages are retrieved from the web server's
file system without any modification,
[ ] while dynamic pages must be created by the server , typically reading from a
database to fill out a template, before being sent to the user's browser.
An example of a dynamic page is a search engine results page.
Security
The
HTTP (HTTP) is the way a
web browser retrieves webpage content from a
website. HTTP has two optional security features:
HTTPS (HTTPS) greatly reduces the possibility of eavesdropping by a third party,
while Content Security Policy protects against cross-site scripting attacks.
Both features are supported by mainstream web browsers, and many websites use them.
See also